package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbCommodityPropertyDao;
import com.gtw.modules.entity.TbCommodityProperty;
import com.gtw.modules.sys.service.SysTbCommodityPropertyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/** 商品属性中间表接口实现类
 * Created by wuye on 2018/3/2.
 */
@Service
public class SysTbCommodityPropertyServiceImpl implements SysTbCommodityPropertyService {

    @Autowired
    private TbCommodityPropertyDao tbCommodityPropertyDao;

    @Override
    public TbCommodityProperty queryObject(Integer id){
        return tbCommodityPropertyDao.queryObject(id);
    }

    @Override
    public List<TbCommodityProperty> queryList(Map<String, Object> map){
        return tbCommodityPropertyDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return tbCommodityPropertyDao.queryTotal(map);
    }

    @Override
    public void save(TbCommodityProperty commodityProperty){
        tbCommodityPropertyDao.save(commodityProperty);
    }

    @Override
    public void update(TbCommodityProperty commodityProperty){
        tbCommodityPropertyDao.update(commodityProperty);
    }

    @Override
    public void delete(Integer id){
        tbCommodityPropertyDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        tbCommodityPropertyDao.deleteBatch(ids);
    }

    @Override
    public List<TbCommodityProperty> foundByCommodityid(Integer commodityid) {
        return tbCommodityPropertyDao.foundByCommodityid(commodityid);
    }
}
